home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Mac Game Programming Gurus
/
TricksOfTheMacGameProgrammingGurus.iso
/
More Source
/
Pascal
/
Book Demos in Pascal
/
SpriteEngine
/
SE Programmed Sprite
/
SpriteStructure.p
< prev
Wrap
Text File
|
1995-04-04
|
725b
|
30 lines
unit SpriteStructure;
{This unit defines the SpriteRecord structure. It i a separate unit since it}
{is likely to be edited.}
interface
{$setc _hasfixedpoint := false}
{$IFC UNDEFINED THINK_PASCAL}
uses Types, QuickDraw;
{$ENDC}
type
SpritePtr = ^SpriteRecord;
SpriteRecord = record
(*Game entity data - edit as desired*)
speed: Point; (* *)
timeOnCurrent: Integer;
currentInstruction: Integer;
(*Sprite data - don't remove*)
position: Point; (* Integer screen coordinates! *)
face: GrafPtr; (* Apprearance of the sprite *)
drawingRect: Rect; (* Where is it? *)
(*List pointers - don't remove*)
prev, next: SpritePtr; (* Next enity in the list *)
end;
implementation
end.